import service from '@/utils/request.js'

const commentApi = {
    // 分页查询
    list(commentQuery) {
        return service.get('/comment/list', { params: commentQuery })
    },
    // 查询全部评价
    selectAll() {
        return service.get('/comment/selectAll')
    },
    // 新增评价
    add(comment) {
        return service.post('/comment/add', comment)
    }
}

export default commentApi
